module.exports = {
    baseUrl: BASE_URL,
    chainWebpack: config => {
        config.resolve.alias
        .set('@', resolve('src'))
        .set('_c', resolve('src/components'))
        .set('_conf', resolve('config'))
    },
    devServer: {
        proxy: {
            '/api': {
                target: 'http://localhost:8080',
                changeOrigin: true,
                ws: true,
                pathRewrite: {
                    '^/api': '/static/mock'
                }
            }
        }
    }
}